  <template>
    <div id="appHeader">
        <span>Demo</span>
                      
        <el-dropdown>
          <i class="el-icon-setting" style="margin-right: 15px"></i>
          <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>查看</el-dropdown-item>
              <el-dropdown-item>新增</el-dropdown-item>
              <el-dropdown-item>删除</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <span>Curry</span>
    </div>
</template>

<script>
export default {
    data() {
        return {
            isShowProfile: false,

            passwordDialogVisible: false,
            avatarDialogVisible: false,
        }
    },
    computed: {
        // user() {
        //     return this.$store.state.user;
        // },
        // avatarUrl() {
        //     var avatarUrl = this.$store.state.user.avatarUrl;
        //     if (rt.isNullOrWhiteSpace(avatarUrl)) {
        //         return null;
        //     }

        //     return rt.getBaseUrl() + avatarUrl;
        // }
    },
    methods: {
        // logout() {
        //     this.$auth.logout();
        // },
        // showAvatarDialog() {
        //     this.$refs.dlgAvatar.show();
        // },
        // showPasswordDialog() {
        //     this.$refs.dlgPassword.show();
        // },
        // errorAvatar() {
        //      this.avatarUrl = null;
        //      this.$store.commit("UPDATE_USER_AVATAR", null);
        // }
    }
}
</script>

<style>
#appHeader {
    height: 40px;
    background-color: #ffffff;
    width: 100%;
    line-height: 40px;
    font-size: 15px;    
}

#appHeader .logo {
    margin-top: 15px;
    /* width: 230px;*/
    height: 34px;
}

#appHeader>ul {
    float: right;
    margin-right: 12px;
    height: 60px;
    line-height: 60px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#appHeader .message-cont {
    font-size: 14px;
    margin-right: 4px;
}

#appHeader>ul>li {
    margin-right: 45px;
    height: 60px;
    line-height: 60px;
}

#appHeader>ul>li.divider {
    height: 20px;
    width: 1px;
    background: #ccc;
    margin-right: 30px;
}

#appHEader .message {
    color: #555555;
}

#appHeader .profile {
    margin-right: -12px;
    padding: 0 12px 0 10px;
}

#appHeader .profile:hover {
    background-color: #f2f2f2;
}

#appHeader .profile .el-icon-arrow-down {
    font-size: 12px;
    position: relative;
    top: -17px;
    left: 10px;
}

#appHeader .profile .avatar {
    width: 50px;
    height: 50px;
    margin-top: 5px;
    border-radius: 50%;
}

#profileDowndown {
    position: absolute;
    top: 60px;
    z-index: 999;
    min-width: 88px;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    padding: 5px 0;
}

#profileDowndown .item {

    margin: 0;
    display: block;
    font-size: 13px;
    line-height: 1;
    padding: 8px 15px;
    cursor: pointer;
}

#appHeader .divider {
    margin: 5px 0;
    padding: 0;
    height: 1px;
    background-color: #ddd;
}

#profileDowndown .item:hover {
    background-color: #f2f2f2;
}

#appHeader .el-badge {
    top: -1px;
}

#appHeader .el-badge__content {
    background-color: #1fb6d8 !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 0 5px !important;
    border-radius: 100%;
    font-size: 14px !important;
}
@media screen and (min-width:1920px) {
    #appHeader{
        width: 1468px;
    }
}
</style>
